* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

.box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.text {
    width: 100%;
    height: 300px;
    line-height: 1.5;
    font-size: 12rem;
    color: #fff;
    text-align: center;
    margin: 15% auto 0;
    text-transform: uppercase;  /* 字母大写 */
    background: linear-gradient(90deg, #000, #fff, #000);
    letter-spacing: 5px;
    -webkit-background-clip: text;
    background-clip: text;  /* 文字裁剪 */
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
    background-size: 80%;
    animation: move 5s linear infinite;
}

@keyframes move {
    0% {
        background-position-x: -500%;
    }

    100% {
        background-position-x: 500%;
    }
}